projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de3616d
)
theme: Make spinner steps count forward, not backward
author
Benjamin Otte
<otte@redhat.com>
Sat, 5 Mar 2011 13:57:55 +0000
(14:57 +0100)
committer
Benjamin Otte
<otte@redhat.com>
Sat, 5 Mar 2011 14:03:56 +0000
(15:03 +0100)
This makes the spinner roate the right way again.
gtk/gtkthemingengine.c
patch
|
blob
|
history
diff --git
a/gtk/gtkthemingengine.c
b/gtk/gtkthemingengine.c
index bac646bdcbb8d533246e3654da87ec5388205304..8eb5556715a52618fcc0ae55976c11a04bcb9e18 100644
(file)
--- a/
gtk/gtkthemingengine.c
+++ b/
gtk/gtkthemingengine.c
@@
-3003,8
+3003,7
@@
gtk_theming_engine_render_activity (GtkThemingEngine *engine,
gint inset = 0.7 * radius;
/* transparency is a function of time and intial value */
- gdouble t = 1.0 - (gdouble) ((i + num_steps - step)
- % num_steps) / num_steps;
+ gdouble t = 1.0 - (gdouble) ((i + step) % num_steps) / num_steps;
gdouble xscale = cos (i * G_PI / half);
gdouble yscale = sin (i * G_PI / half);